<!--<?php
print <<<EOT
-->
<div class="m"></div>
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="tr4"><td colspan="7">
  <input type="button" name="Submit5" value="总上传排行" class="btn" onclick="window.location='$basename&order=postnum';"/>
  <input type="button" name="Submit5" value="本周上传排行" class="btn" onclick="window.location='$basename&order=weekpost';"/>
  <input type="button" name="Submit5" value="本月上传排行" class="btn" onclick="window.location='$basename&order=monthpost';"/>
  <input type="button" name="Submit5" value="历史上传详单" class="btn" onclick="alert('此功能暂不开放');/*window.location='$basename&order=history';*/"/>

  </td>
</tr>
</table>
</div>
<!--
EOT;
if(!$action){
print <<<EOT
-->
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head"><td colspan="8">用户上传统计  （共 $count 名用户）</td></tr>
<tr class="tr2">
  <td width="5%">&nbsp;</td>
  <td>UID</td>
  <td>账号</td>
  <td>总上传</td>
  <td>本周上传</td>
  <td>本月上传</td>
  <td>精华数量</td>
  <td>&nbsp;</td>
</tr>
<!--
EOT;
foreach($admindb as $admin){
$delurl = EncodeUrl("$basename&action=del&uid=$admin[uid]");
print <<<EOT
-->
<tr class="tr3">
  <td><img src="images/icon/user.png" align="absmiddle" /></td>
  <td>$admin[uid]</td>
  <td>$admin[username]</td>
  <td>$admin[postnum]</td>
  <td>$admin[weekpost]</td>
  <td>$admin[monthpost]</td>
  <td>$admin[digestnum]</td>
  <td>&nbsp;</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<!--
EOT;
}elseif($action=='edit'){
print <<<EOT
-->
<form action="$basename" method="post">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head">
  <td colspan="2">编辑用户</td>
</tr>
<tr class="line">
  <td>后台权限</td>
  <td><input type="radio" name="ifadmin" value="1" $ifadmin_Y />
    拥有权限
      <input name="ifadmin" type="radio" value="0" $ifadmin_N />
     没有权限 (具备后台管理权限的用户可以登录后台进行一般管理，且可以查看前台所有目录下的{$very[contentName]})</td>
</tr>
<tr class="line">
  <td width="25%">登录账号</td>
  <td width="75%"><input name="new_username" type="text" disabled="disabled" class="input" id="new_username" value="$edit[username]" />
  (账号不能修改)</td>
</tr>
<tr class="line">
  <td>登录密码</td>
  <td><input name="new_password" type="password" id="new_password" class="input" />
  (如果不修改清留空)</td>
</tr>
<tr class="line">
  <td>密码确认</td>
  <td><input name="new_password2" type="password" id="new_password2" class="input" /></td>
</tr>
<tr class="line">
  <td>真实姓名</td>
  <td><input name="realname" type="text" class="input" id="realname" value="$edit[realname]" /></td>
</tr>
<tr class="line">
  <td>身份证号码</td>
  <td><input name="idcard" type="text" class="input" id="idcard" value="$edit[idcard]" size="30" /></td>
</tr>
<tr class="line">
  <td>联系电话</td>
  <td><input name="telephone" type="text" class="input" id="telephone" value="$edit[telephone]" /></td>
</tr>
<tr class="line">
  <td>所属组</td>
  <td><select name="groupid" id="groupid">
  $select
  </select>
  </td>
</tr>
<tr class="line">
  <td>E-mail</td>
  <td><input name="new_email" type="text" class="input" id="new_email" value="$edit[email]" /></td>
</tr>
</table>
</div>
<center>
  <input name="uid" type="hidden" id="uid" value="$edit[uid]" />
  <input name="action" type="hidden" id="action" value="edit" />
  <input name="step" type="hidden" id="step" value="2">
  <input type="submit" name="Submit" value=" 提 交 " class="btn"> 
  <input type="reset" name="Submit2" value=" 重 置 " class="btn">
</center>
</form>
<!--
EOT;
}elseif($action=='add'){
print <<<EOT
-->
<form action="$basename" method="post">
<div class="t">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="head">
  <td colspan="2">创建用户</td>
</tr>
<tr class="line">
  <td>后台权限</td>
  <td><input type="radio" name="ifadmin" value="1" />
    拥有权限
      <input name="ifadmin" type="radio" value="0" checked="checked" />
     没有权限</td>
</tr>
<tr class="line">
  <td width="25%">登录账号</td>
  <td width="75%"><input name="new_username" type="text" id="new_username" class="input" />
    *</td>
</tr>
<tr class="line">
  <td>登录密码</td>
  <td><input name="new_password" type="password" id="new_password" class="input" />
    *</td>
</tr>
<tr class="line">
  <td>密码确认</td>
  <td><input name="new_password2" type="password" id="new_password2" class="input" />
    *</td>
</tr>
<tr class="line">
  <td>真实姓名</td>
  <td><input name="realname" type="text" id="realname" class="input" /></td>
</tr>
<tr class="line">
  <td>身份证号码</td>
  <td><input name="idcard" type="text" class="input" id="idcard" size="30" /></td>
</tr>
<tr class="line">
  <td>联系电话</td>
  <td><input name="telephone" type="text" id="telephone" class="input" /></td>
</tr>
<tr class="line">
  <td>所属组</td>
  <td><select name="groupid" id="groupid">
  $select
  </select>  </td>
</tr>
<tr class="line">
  <td>E-mail</td>
  <td><input name="new_email" type="text" id="new_email" class="input" /></td>
</tr>
</table>
</div>
<center>
  <input name="action" type="hidden" id="action" value="add" />
  <input name="step" type="hidden" id="step" value="2">
  <input type="submit" name="Submit" value=" 提 交 " class="btn"> 
  <input type="reset" name="Submit2" value=" 重 置 " class="btn">
</center>
</form>
<!--
EOT;
}
?>-->